<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./TemplateLogin.xhtml">

            <ui:define name="top">
                <p:panel header="Bienbenidos a Cafeteria ITS">
                    <center>
                        <p:graphicImage value="/img/cafeteria.jpg  " width="1200" height="130"/>
                    </center>
                </p:panel>
            </ui:define>

            <ui:define name="content">
                <center>
                    <p:panel header="Login">
                        <h:form>
                            <p:growl/>
                            <p:panelGrid columns="2">
                                <p:outputLabel value="Usuario: "/><br/>
                                <p:inputText value="#{loginBean.user}"/><br/>
                                <p:outputLabel value="Password: "/><br/>
                                <p:password value="#{loginBean.pass}"/>
                            </p:panelGrid>
                            <p:commandButton action="#{loginBean.validarLogin}" value ="Acceder" ajax="false"/>
                        </h:form>
                    </p:panel>
                </center>
            </ui:define>

            <ui:define name="bottom">

            </ui:define>

        </ui:composition>

    </body>
</html>
